/*
    This file is part of SQLiteGTK, written by Aly Hirani

    SQLiteGTK is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    SQLiteGTK is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with SQLiteGTK.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "main_window.h"
#include "main_window_notebook.h"
#include "main_window_notebook_dispatcher.h"
#include "util.h"

gboolean
main_window_notebook_dispatch_close_tabs(GtkNotebook *notebook, GList *tabs, MainWindowNotebookPageType type)
{
	switch(type)
	{
		/* TODO: Clean up the duplication of code */
		/* case MWNPT_TABLES_LIST:
			return main_window_notebook_tables_list_close_tabs(notebook, tabs);
		case MWNPT_EDITOR:
			return main_window_notebook_editor_close_tabs(notebook, tabs);
		case MWNPT_TABLE_EDIT: */
		default:
			log_error("Unable to find %d NotebookPageType in main_window_notebook_dispatch_close_tabs", type);
			return FALSE;
	}
}
